cmake_minimum_required(VERSION 3.1.3)
project(all-test)
#指定子cmake文件所在目录
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test2)
#设置install目录为执行cmake命令所在路径
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})